package com.shop.mapper;

import com.shop.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer authorId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer authorId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateArticleNumber(@Param("authorId") Integer authorId, @Param("changeNum") int changeNum);

    int updateByPrimaryKey(UserInfo record);
}